<div id="content">
  <div><img src="/images/ht_tb_pic.jpg" width="100%" height="61" /></div><b></b>
  <div id="ht_content">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="data3" align="left">
    <tr>
      <td class="td_title"  width="50px">用户名</td>
      <td class="td_title"  width="40px">昵称</td>
      <td class="td_title"　 width="50px">电话</td>
      <td class="td_title">邮箱</td>
	  <td class="td_title" width="150px">操作</td>
    </tr>
	<% for user in @users %>
 	<tr>
        <td >
            <%=h user.name %>
        </td>
        <td>
            <%=h user.nickname %>
        </td>
		<td>
            <%=h user.user_info.telephone %>
        </td>
        <td >
            <%=h user.email %>
        </td>
        <td >

        <!--<%= link_to '显示', {:controller=>'users',:action=>'show',:id => user.id} %>-->

        <%= link_to '编辑', {:controller=>'management',:action=>'edit',:id => user.id} %>
		
		<%= link_to '详细信息', {:controller=>'management',:action=>'detail',:id => user.id} %>

        <%= link_to '删除', user, :confirm => '即将删除，是否确认?', :method => :delete %>
   	
        </td>
    </tr>
	<% end %>
    <tr><td colspan="5" align="center">
    	 
  <%= will_paginate @users, :prev_label   => '上一页',   
      :next_label   => '下一页' %>  
  
    </td></tr>
  </table>
  

    <div class="blank20"></div>
    <div class="blank10"></div>
</div>
</div>
